package cc.chenwenxi.iot;

import java.io.BufferedInputStream;

import org.junit.Test;

import cc.chenwenxi.tts.TtsBaiduKit;
import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.Player;

public class TtsTest {
	@Test
	public void tts() {
		BufferedInputStream input = new TtsBaiduKit("报警!警告!莱特币爆仓").getInput();
		try {
			Player player = new Player(input);
			player.play();
		} catch (JavaLayerException e) {
			
		}
	}
}
